//
//  SleepChartDetail.swift
//  DaRings
//
//  Created by 尹琼 on 2022/11/10.
//

import UIKit

public class SleepChartDetail: NSObject {
    
    public var date:String
    
    public var detail:[Int]
    
    public var max: Int {
        
        return detail.max() ?? 0
        
    }
    
    public var min: Int {
        
        return detail.min() ?? 0
    }
    
    
    public init(date: String, detail: [Int]) {
        self.date = date
        self.detail = detail
    }
    
   
}
